milk (someone or something) for all (they are) worth

Translations
выжимать (кого-то или что-то) до последней капли
They decided to milk the project for all it was worth before finally shutting it down.
Они решили выжать из проекта все, что возможно, прежде чем окончательно его закрыть.
Definitions
To exploit or take full advantage of someone or something, often for personal gain, until there is nothing left to gain; to use up all the resources, benefits, or opportunities that someone or something can provide.